﻿
<section class="content-header">
    <h1>
        操作日志
    </h1>
    <ol class="breadcrumb">
        <li><a href="@Url.Action("Index", "Home")"><i class="fa fa-home"></i> 首页</a></li>
        <li class="active">系统管理 </li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-lg-12">
            <div class="box box-primary">
                <div class="box-header with-border">

                </div>
                <div class="box-body no-padding">
                    <div class="dataTable-tools btn-group">
                        @Html.Bootstrap().LinkButton("删除", ToolBarIco.Delete).Click("window.app.deleteItem('example','" + @Url.Action("Delete") + "')").Route(Url.Action("Delete"))
                        @Html.Bootstrap().LinkButton("刷新", ToolBarIco.Refresh).Click("window.app.search();")
                    </div>
                    <div class="table-responsive">
                        <table id="example" class="table table-bordered table-striped table-hover dataTable text-center" width="100%"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>



<script>
    $(document).ready(function () {
        $('#example').dataTable({
            "serverSide": true,
            "ajax": {
                "url": "@Url.Action("GetPaged")",
                "type": "POST"
            },
            columns: [
                { title: '<label class="checkbox m-l-12 m-t-none m-b-none i-checks"><input type="checkbox" /><i></i></label>', data: function (row, type, set) { return '<label class="checkbox m-l-12 m-t-none m-b-none i-checks"><input type="checkbox" name="cellCheckbox" value="' + row.id + '" /><i></i></label>'; }, "bStorable": false, width: 30 },

                { title: "操作内容的描述", data: 'content' },
                { title: "操作员姓名", data: 'fullName', width: 100 },
                { title: "事件时间", data: function (row) { return new Date(row.eventtime).format('yyyy-MM-dd HH:mm:ss') }, width: 140 },
                { title: "来源", data: 'externalSources', width: 160 }
            ]

        });
    });
</script>
